public class Cat extends Pet{
    public void eat () {
        System.out.println("cat drinks water");
    }
    public  void toPlay () {  //Cat类中独有的方法

        System.out.println("cat can play whih people");
    }
}
